package Service;

import Bean.Cart;
import Bean.Furn;
import Bean.Page;

import java.math.BigDecimal;
import java.util.List;

public interface FurnService {
    public List<Furn> getAllFurn();
    public  boolean insertFurn(Furn furn);
    public boolean deleteFurn(String FurnName,String Merchant);
    public boolean updateFurn(Integer id, Furn furn);
    public Furn getFurn(String sql,Object ...nums);
    public Integer getCount(String sql);
    public Page initManagePage(Page page, int ManagePageSize);
    public List<Furn> getSomeFurn(Page page);
    public Page<Furn> getPage_Furn(int begin ,int size);
    public Page<Furn> Search(String keyWord,int begin,int Size);
    public List<Furn> setGoods(List<Cart.CartGood> list);
    public BigDecimal calculatePrice(List<Cart.CartGood> list);
    public BigDecimal calculatePrice(Integer userId);

}
